require("../../common/vendor.js"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pagesA/pages/userA/fans" ], {
    "0ec2": function(e, t, n) {
        n.r(t);
        var r, a = n("b8e5"), o = n("3668");
        for (r in o) "default" !== r && function(e) {
            n.d(t, e, function() {
                return o[e];
            });
        }(r);
        n("4a77");
        var i = n("f0c5"), a = Object(i.a)(o.default, a.b, a.c, !1, null, null, null, !1, a.a, void 0);
        t.default = a.exports;
    },
    "21c8": function(e, t, n) {},
    3668: function(e, t, n) {
        n.r(t);
        var r, a = n("9136"), o = n.n(a);
        for (r in a) "default" !== r && function(e) {
            n.d(t, e, function() {
                return a[e];
            });
        }(r);
        t.default = o.a;
    },
    "4a77": function(e, t, n) {
        var r = n("21c8");
        n.n(r).a;
    },
    "7ee8": function(e, t, n) {
        (function(e) {
            function t(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            n("0cda"), t(n("66fd")), e(t(n("0ec2")).default);
        }).call(this, n("543d").createPage);
    },
    9136: function(e, n, r) {
        (function(a) {
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.default = void 0;
            var e, o = (e = r("a34a")) && e.__esModule ? e : {
                default: e
            };
            function c(e, t, n, r, a, o, i) {
                try {
                    var s = e[o](i), c = s.value;
                } catch (e) {
                    return n(e), 0;
                }
                s.done ? t(c) : Promise.resolve(c).then(r, a);
            }
            var i = getApp(), t = (r("10cd"), {
                data: function() {
                    return {
                        module_name: i.globalData.module_name,
                        showAlert_login: !1,
                        userinfo: a.getStorageSync("userinfo"),
                        setting: a.getStorageSync("setting"),
                        wxCode: "",
                        systemtype: "",
                        swiperCurrentIndex: 0,
                        tabs: [ "全部" ],
                        mainHeight: 0,
                        orders: [ [] ],
                        pages: [ 1 ],
                        loadingTypes: [ 3 ],
                        pageLoading: !0,
                        type: ""
                    };
                },
                onReady: function() {
                    var n = this;
                    setTimeout(function() {
                        a.createSelectorQuery().select("#gBody").fields({
                            size: !0
                        }, function(t) {
                            a.createSelectorQuery().select("#nav").fields({
                                size: !0
                            }, function(e) {
                                n.mainHeight = t.height - e.height, n.pageLoading = !1;
                            }).exec();
                        }).exec();
                    }, 1500);
                },
                onShow: function() {
                    a.hideLoading();
                },
                onLoad: function(n) {
                    var s, r = this;
                    return s = o.default.mark(function e() {
                        var t;
                        return o.default.wrap(function(e) {
                            for (;;) switch (e.prev = e.next) {
                              case 0:
                                return e.next = 2, r.$onLaunched;

                              case 2:
                                (t = r).setting = a.getStorageSync("setting"), t.tabBar = a.getStorageSync("tabbar"), 
                                t.userinfo = a.getStorageSync("userinfo"), a.hideLoading(), r.module_name = i.globalData.module_name, 
                                r.type = n.op, t.getOrders();

                              case 12:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }), function() {
                        var e = this, i = arguments;
                        return new Promise(function(t, n) {
                            var r = s.apply(e, i);
                            function a(e) {
                                c(r, t, n, a, o, "next", e);
                            }
                            function o(e) {
                                c(r, t, n, a, o, "throw", e);
                            }
                            a(void 0);
                        });
                    }();
                },
                watch: {
                    swiperCurrentIndex: function(e) {
                        this.orders[this.swiperCurrentIndex].length < 1 && 3 == this.loadingTypes[this.swiperCurrentIndex] && this.getOrders();
                    }
                },
                methods: {
                    loadsetting: function() {
                        var t = this, e = i.globalData.util.url("entry/wxapp/api", {
                            m: i.globalData.module_name,
                            o: "setting"
                        });
                        a.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: a.getStorageSync("openid")
                            },
                            success: function(e) {
                                e = i.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), e = JSON.parse(e);
                                a.setStorageSync("setting", e.setting), t.setting = e.setting;
                            }
                        });
                    },
                    navChange: function(e) {
                        this.swiperCurrentIndex = e;
                    },
                    swiperChange: function(e) {
                        e = e.detail.current;
                        this.swiperCurrentIndex = e;
                    },
                    scrollend: function(e) {
                        console.log(e), 3 == this.loadingTypes[this.swiperCurrentIndex] && this.getOrders();
                    },
                    getOrders: function() {
                        var t = this;
                        console.log("类型 : " + this.tabs[this.swiperCurrentIndex] + " 第" + this.pages[this.swiperCurrentIndex] + "页"), 
                        this.loadingTypes.splice(this.swiperCurrentIndex, 1, 1);
                        var e = i.globalData.util.url("entry/wxapp/api", {
                            m: i.globalData.module_name,
                            o: "fans"
                        }), n = {
                            openid: a.getStorageSync("openid"),
                            type: this.type,
                            status: this.tabs[this.swiperCurrentIndex],
                            page: this.pages[this.swiperCurrentIndex]
                        };
                        a.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: n,
                            success: function(e) {
                                e = i.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), e = JSON.parse(e);
                                "ok" == e.status || "nomore" == e.status ? (1 == t.pages[t.swiperCurrentIndex] ? t.orders.splice(t.swiperCurrentIndex, 1, e.orders) : t.orders[t.swiperCurrentIndex] = t.orders[t.swiperCurrentIndex].concat(e.orders), 
                                t.pages[t.swiperCurrentIndex]++, "nomore" == e.status ? t.loadingTypes.splice(t.swiperCurrentIndex, 1, 2) : t.loadingTypes.splice(t.swiperCurrentIndex, 1, 3)) : "empty" == e.status ? (console.log("empty"), 
                                t.loadingTypes.splice(t.swiperCurrentIndex, 1, 5)) : "nomore" == e.status && (console.log("nomore"), 
                                t.loadingTypes.splice(t.swiperCurrentIndex, 1, 2));
                            }
                        });
                    }
                },
                components: {
                    gracePage: function() {
                        r.e("graceUI/components/gracePage").then(function() {
                            return resolve(r("1021"));
                        }.bind(null, r)).catch(r.oe);
                    },
                    graceNavBar: function() {
                        r.e("graceUI/components/graceNavBar").then(function() {
                            return resolve(r("a631"));
                        }.bind(null, r)).catch(r.oe);
                    },
                    graceEmpty: function() {
                        r.e("graceUI/components/graceEmptyNew").then(function() {
                            return resolve(r("f8df"));
                        }.bind(null, r)).catch(r.oe);
                    },
                    graceLoading: function() {
                        r.e("graceUI/components/graceLoading").then(function() {
                            return resolve(r("1d04"));
                        }.bind(null, r)).catch(r.oe);
                    }
                }
            });
            n.default = t;
        }).call(this, r("543d").default);
    },
    b8e5: function(e, t, n) {
        n.d(t, "b", function() {
            return r;
        }), n.d(t, "c", function() {
            return a;
        }), n.d(t, "a", function() {});
        var r = function() {
            this.$createElement;
            this._self._c;
        }, a = [];
    }
}, [ [ "7ee8", "common/runtime", "common/vendor" ] ] ]);